package com.rzjm.exercise.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rzjm.exercise.common.utils.ExcelColumn;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 设备的温度记录
 *
 * @author mr.zhou
 * @email zhouwei_ncie@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@TableName("ck_trerminal_temperature")
public class TerminalTemperature implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.AUTO)
	private Integer id;
	private Integer shopId;
	private Integer deviceId;

	@ExcelColumn(value = "温度", col = 3 ,width = 110)
	private Float wendu;


	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	@ExcelColumn(value = "时间", col = 8 ,width = 110)
	@TableField(exist = false)
	private String createTimeStr;

	private String sendMsgOkIds;

	private String sendMsgErrorIds;

	private Integer feedId;

	@ExcelColumn(value = "饲料名称", col = 4,width = 110)
	private String feedName;

	private Integer isIgnor;

	private Integer isUnqualified;

	@ExcelColumn(value = "高温度数值", col = 6,width = 110)
	private Double highTemperature;

	@ExcelColumn(value = "低温度数值", col = 5,width = 110)
	private Double lowTemperature;

	@ExcelColumn(value = "不合格区间", col = 7,width = 110)
	private Double unqualifiedIntervalValue;

	@TableField(exist = false)
	private BigDecimal avgWendu;

	@ExcelColumn(value = "是否是换饲料后五分钟内的温度", col = 3,width = 200)
	@TableField(exist = false)
	private String ignorStr;

	@TableField(exist = false)
	private String unqualifiedStr;

	@ExcelColumn(value = "企业名称", col = 2,width = 150)
	@TableField(exist = false)
	private String shopName;

	@ExcelColumn(value = "设备名称", col = 1,width = 150)
	@TableField(exist = false)
	private String terminalName;

}
